<html>
<head>
<title>Content Management System - Met CS 633 Distributed Software Development Class</title>
<meta HTTP-EQUIV="Content-Type" CONTENT="text/html; charset=iso-8859-1">
<link href="css/cms.css" rel="stylesheet" type="text/css">
</head>
<body>
<table width="620px" align="center">
	<tr>
		<td><img src="images/top.jpg" width="620px" height="20px" alt="CMS"></td>
	</tr>
	<tr>
		<td>
			<table cellpadding="2" cellspacing="2" width="85%" class="box_gray" align="center">
				<TR>
					<TD background="images/menu.bg.jpg" class="cmstitle" align="center">MET CS 633 Distributed Software Development CMS</TD>
				</TR>
				<tr>
					<td class="contentheader1">View Food</td>
				</tr>
				<tr>
					<td>
						<table align="center" cellpadding="2" cellspacing="2" width="99%">
							<input type="hidden" name="food_id" value="<?=$food_id?>">
							<input type="hidden" name="gmwt1" value="<?=$gmwt1?>">
							<input type="hidden" name="gmwt2" value="<?=$gmwt2?>">
							<? if (!empty($gmwt1)) { ?>
							<tr class="content">
								<td colspan="3">Serving Size: <br />
									<a href="cms_view_food.php?action=calc1&food_id=<?=$food_id?>" class="content"><?=$food["gmwt_desc1"]?></a>
									<? if (!empty($gmwt2)) { ?>
									<br /><a href="cms_view_food.php?action=calc2&food_id=<?=$food_id?>" class="content"><?=$food["gmwt_desc2"]?></a><br />
									<? } ?>
								</td>
							</tr>
							<? } ?>
							<table cellpadding="2" cellspacing="2" width="75%" class="box_gray" align="center">
								<tr bgcolor="#436183" "#000066" "CCCDEB" class="cmstable">
									<td colspan="3" align="center">NUTRITION FACTS </td>
								</tr>
								<tr class="content">
									<td class="contentheader1" colspan="3"><?=$food_name?></td>
								</tr>
								<tr>
									<td colspan=3><img src="images/paragraph-line.gif" height="5px" width="300px"></td>
								</tr>
								<tr class="content">
									<td class="contentheader1">Serving Size: </td>
									<td align="left" colspan="2"><?=$gmwt_desc?></td>
								</tr>
								<tr class="content">
									<td colspan="3"><img src="images/paragraph-line.gif" width="300px"></td>
								</tr>
								<tr class="content">
									<td colspan="3" class="contentheader1">Amount Per Serving</td>
								</tr>
								<tr class="content">
									<td class="contentheader1">Calories (kcal): </td>
									<td align="left" colspan="2"><?=$calc_calories?></td>
								</tr>
								<tr class="content">
									<td class="contentheader1">Total Fat (gm): </td>
									<td align="left" colspan="2"><?=$calc_total_fat?></td>
								</tr>
								<tr class="content">
									<td class="contentheader1">&nbsp;&nbsp;&nbsp;&nbsp;Saturated Fat (gm): </td>
									<td align="left" colspan="2"><?=$calc_saturated_fat?></td>
								</tr>
								<tr class="content">
									<td class="contentheader1">&nbsp;&nbsp;&nbsp;&nbsp;Trans Fat (gm): </td>
									<td align="left" colspan="2"><?=$calc_trans_fat?></td>
								</tr>
								<tr class="content">
									<td class="contentheader1">Cholesterol (gm): </td>
									<td align="left" colspan="2"><?=$calc_cholesterol?></td>
								</tr>
								<tr class="content">
									<td class="contentheader1">Sodium (gm): </td>
									<td align="left" colspan="2"><?=$calc_sodium?></td>
								</tr>
								<tr class="content">
									<td class="contentheader1">Carbohydrates (gm): </td>
									<td align="left" colspan="2"><?=$calc_carbohydrates?></td>
								</tr>
								<tr class="content">
									<td class="contentheader1">&nbsp;&nbsp;&nbsp;&nbsp;Dietary Fiber (gm): </td>
									<td align="left" colspan="2"><?=$calc_dietary_fiber?></td>
								</tr>
								<tr class="content">
									<td class="contentheader1">&nbsp;&nbsp;&nbsp;&nbsp;Sugar (gm): </td>
									<td align="left" colspan="2"><?=$calc_sugar?></td>
								</tr>
								<tr class="content">
									<td class="contentheader1">Protein (gm): </td>
									<td align="left" colspan="2"><?=$calc_protein?></td>
								</tr>
								<tr class="content">
									<td colspan="3"><img src="images/paragraph-line.gif" height="5px" width="300px"></td>
								</tr>
								<tr class="content">
									<td class="contentheader1">Iron (mg): </td>
									<td align="left" colspan="2"><?=$calc_iron?></td>
								</tr>
								<tr class="content">
									<td class="contentheader1">Vitamin C (mg): </td>
									<td align="left" colspan="2"><?=$calc_vitc?></td>
								</tr>
								<tr class="content">
									<td class="contentheader1">Vitamin B6 (mg): </td>
									<td align="left" colspan="2"><?=$calc_vitb6?></td>
								</tr>
								<tr class="content">
									<td class="contentheader1">Calcium (mg): </td>
									<td align="left" colspan="2"><?=$calc_calcium?></td>
								</tr>
								<tr class="content">
									<td class="contentheader1">Vitamin A (IU): </td>
									<td align="left" colspan="2"><?=$calc_vita_ui?></td>
								</tr>
							</table>
						</table>
					</td>
				</tr>
				<tr>
					<td><img src="images/spacer.gif" height="10"></td>
				</tr>
				<tr align="center">
					<td><a href="cms_main.php" class="content">Return to CMS Home</a>&nbsp;&nbsp;&nbsp;&nbsp;|&nbsp;&nbsp;&nbsp;&nbsp;<a href="main.php" class="content">Exit CMS</td>
				</tr>
			</table>

		</td>
	</tr>

	<tr>
		<td><img src="images/spacer.gif" width=29 height=10 alt=""></td>
	</tr>
</table>
</body>
</html>